package com.bbs2.service;

import com.bbs2.dao.ConcernPostDao;
import com.bbs2.entity.ConcernPost;

public class ConcernPostService {
	ConcernPostDao cpdao = new ConcernPostDao();
	public int save(ConcernPost cp){
		return cpdao.save(cp);
	}
	public boolean checkConcernPost(String userId,String postId){
		ConcernPost cp =  cpdao.checkConcernPost(userId, postId);
		if(cp != null){
			return false;
		}else{
			return true;
		}
	}
}
